package com.xxx.coll;

import java.util.Comparator;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/22  10:32
 * @Copyright
 */
public class comparatorBylenhthLmpl implements Comparator<Student>{


    @Override
    public int compare(Student o1, Student o2) {
        return o1.getName().length() - o2.getName().length();
    }
}
